﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;

namespace FPSO.HMI.Controls
{
    /// <summary>
    /// UCValveStatus.xaml 的交互逻辑
    /// </summary>
    public partial class UCValveStatus : UserControl
    {
        public UCValveStatus()
        {
            InitializeComponent();
        }

        public static readonly DependencyProperty ValveNameProperty =
            DependencyProperty.Register("ValveName", typeof(string), typeof(UCValveStatus), new PropertyMetadata(""));
        public string ValveName
        {
            get { return (string)GetValue(ValveNameProperty); }
            set
            {
                SetValue(ValveNameProperty, value);
            }
        }

        public static readonly DependencyProperty StatuColorProperty =
            DependencyProperty.Register("StatuColor", typeof(Color), typeof(UCValveStatus), new PropertyMetadata(Colors.Green));
        public Color StatuColor
        {
            get { return (Color)GetValue(StatuColorProperty); }
            set { SetValue(StatuColorProperty, value); }
        }
    }
}
